import request from '@/utils/request'

export function getCurrentVersion (parameter) {
  return request({
    url: '/boss/pro_config/getCurrentVersion',
    method: 'get',
    params: parameter
  })
}
export function getProConfigList (parameter) {
  return request({
    url: '/boss/pro_config/getProConfigList',
    method: 'get',
    params: parameter
  })
}
export function getPublishHistoryList (parameter) {
  return request({
    url: '/boss/pro_config/getPublishHistoryList',
    method: 'get',
    params: parameter
  })
}

export function syncConfig (parameter) {
  return request({
    url: '/boss/pro_config/syncConfig',
    method: 'get',
    params: parameter
  })
}

export function copyConfig (parameter) {
  return request({
    url: '/boss/pro_config/copyProConfig',
    method: 'get',
    params: parameter
  })
}

export function apiUploadViewConfigLog (data) {
  return request({
    url: '/boss/pro_config/detail',
    method: 'post',
    data
  })
}

export function apiUploadEditConfigLog (data) {
  return request({
    url: '/boss/pro_config/update',
    method: 'post',
    data
  })
}
